package com.repair.user.exception;

import com.repair.base.exception.BizException;
import com.repair.base.exception.ErrorCode;
import lombok.Data;

/**
 * @author chunyu
 * @since 2024/9/27,13:37
 */
@Data
public class UserServiceException extends BizException {

    private ErrorCode errorCode;

    public UserServiceException(ErrorCode errorCode) {
        super(errorCode);
    }

    public UserServiceException(String message, ErrorCode errorCode) {
        super(message, errorCode);
    }

    public UserServiceException(String message, Throwable cause, ErrorCode errorCode) {
        super(message, cause, errorCode);
    }

    public UserServiceException(Throwable cause, ErrorCode errorCode) {
        super(cause, errorCode);
    }

    public UserServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, ErrorCode errorCode) {
        super(message, cause, enableSuppression, writableStackTrace, errorCode);
    }
}
